import request from '@/utils/request'

// 查询告警点参数配置列表
export function listParam(query) {
  return request({
    url: '/biz/param/list',
    method: 'get',
    params: query
  })
}

// 查询告警点参数配置详细
export function getParam(id) {
  return request({
    url: '/biz/param/' + id,
    method: 'get'
  })
}

// 新增告警点参数配置
export function addParam(data) {
  return request({
    url: '/biz/param',
    method: 'post',
    data: data
  })
}

// 修改告警点参数配置
export function updateParam(data) {
  return request({
    url: '/biz/param',
    method: 'put',
    data: data
  })
}

// 删除告警点参数配置
export function delParam(id) {
  return request({
    url: '/biz/param/' + id,
    method: 'delete'
  })
}

// 导出告警点参数配置
export function exportParam(query) {
  return request({
    url: '/biz/param/export',
    method: 'get',
    params: query
  })
}


// 同步告警参数
export function triggerAlarmParamToDev(query) {
  return request({
    url: '/biz/param/triggerAlarmParamToDev',
    method: 'get',
    params: query
  })
}
